package com.zhuojy.equity.mall.admin.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhuojy.equity.mall.admin.common.entity.TRole;
import com.zhuojy.equity.mall.admin.dal.dataobject.TRoleDO;
import org.apache.ibatis.annotations.Param;

/**
 * 后台角色自定义Mapper
 */
public interface TRoleMapper extends BaseMapper<TRole> {

	int deleteById(Long id);

	int insertRole(TRoleDO roleDO);

	TRoleDO selectById(Long id);

	int updateById(TRoleDO roleDO);

	IPage<TRole> selectFenye(Page<TRole> userPage, @Param("trole") TRole tRole);

}